package com.huyanqi.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.huyanqi.core.dao.impl.BaseDAOImpl;
import com.huyanqi.dao.PraiseDAO;
import com.huyanqi.entity.Praise;

@Repository("PraiseDAO")
@Transactional
public class PraiseDAOImpl extends BaseDAOImpl<Praise,Long> implements PraiseDAO{

	@PersistenceContext(unitName = "tzlUnit")
	private EntityManager entityManager;

	@Override
	public EntityManager getEntityManager() {
		
		return this.entityManager;
	}

}
